<?php

namespace Weapp;

use Weapp\Basic\Basic;

/**
 * 小程序生物认证
 * Class Soter
 * @package Weapp
 */
class Soter extends Basic
{
    /**
     * SOTER 生物认证秘钥签名验证
     * @param array $data
     * @return array
     * @throws \WeChat\Exceptions\InvalidResponseException
     * @throws \WeChat\Exceptions\LocalCacheException
     */
    public function verifySignature($data)
    {
        $url = 'cgi-bin/soter/verify_signature';
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->callPostApi($url, $data, true);
    }

}